{extend name="layout/base" /}
{block name="main"}
<article class="main__content content">
    <h4>用户列表</h4>
    <table class="table">
        <thead class="table__head">
        <tr>
            <th>ID</th>
            <th>用户名</th>
            <th>注册时间</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody class="table__body">
        {foreach $userList as $user}
        <tr>
            <td>{$user.id}</td>
            <td>{$user.username}</td>
            <td>{$user.create_time}</td>
            <td>
                <div class="tpl-table-black-operation">
                    <a href="{:url('delete')}?id={$user.id}"
                       class="tpl-table-black-operation-del">
                        <i class="am-icon-trash"></i> 删除
                    </a>
                    <a href="{:url('edit')}?id={$user.id}"
                       class="tpl-table-black-operation-del">
                        <i class="am-icon-trash"></i> 编辑
                    </a>
                </div>
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
</article>
{/block}